<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>公司信息</title>
<script type="text/javascript" src="../../js/jquery-1.11.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	var str = location.href;
	var num = str.indexOf("?");
	var companyId = str.substr(num+11,str.length);
	var companyObj=null;
	$.ajax({
		type : 'post',
		dataType : 'text',
		async: false,
		url : '../../company/getCompanyInfoById.action',
		data : {
			"companyDTO.companyId":companyId
		},
		success : function(msg) {
			companyObj = JSON.parse(msg);
			$("#title").html(companyObj[0].companyName);
			$("#remarks").html(companyObj[0].companyRemarks);
			$("#comAdmin").html(companyObj[0].companyAdmin);
			$("#phone").html(companyObj[0].companyPhone);
			$("#email").html(companyObj[0].companyEmail);
			document.getElementById("companyLogo").src=companyObj[0].companyLogo;
		}
	});
});
</script>
</head>
<style>
*{font-family:"微软雅黑"}
#headDiv{
margin-left:35%;
}
#remarks{
 	width: 400px; 
    max-height: 300px;
    margin-left: auto; 
    margin-right: auto; 
    padding: 3px; 
    border: 1px solid #a0b3d6; 
    font-size: 12px; 
    overflow-x: hidden;
}
.im{
width:30px;
height:30px;
margin-left:30px;
}
#title{
font-size:30px;
font-weight:bold;
}
</style>
<body>
<div id="headDiv">
<img id="companyLogo" src="" style="width:50px;"/><span id="title"></span>
</div>
<div id="main-content">
<p>企业简介:</p>
<div id="remarks"></div>
<p>企业代表:&nbsp;<span id="comAdmin" style="font-weight:bold"></span></p>
<p>联系方式:</p>
<img src="../../images/phone.png" class="im"/> <span id="phone"></span>
<img src="../../images/email.png" class="im"/> <span id="email"></span>
</div>
</body>
</html>